package QunarTest;

import android.util.Log;

import junit.framework.AssertionFailedError;
import junit.framework.Test;
import junit.framework.TestListener;

import static HomeElements.Action.shotPic;

/**
 * Created by zhe.xiao on 2017/7/4.
 */

public class QunarTestListener implements TestListener {
    @Override
    public void addError(Test test, Throwable throwable) {

    }

    @Override
    public void addFailure(Test test, AssertionFailedError assertionFailedError) {
        shotPic("xx");

    }

    @Override
    public void endTest(Test test) {

    }

    @Override
    public void startTest(Test test) {
        Log.v("UIAUTOMATOR", "Listener: start test");
        System.out.println("start test");
    }
}
